package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketArea;

import cn.taoticket.fallback.TaoticketAreaClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 由consumer调用，找到provider对应的方法
 */
@FeignClient(name = "taoticket-base-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketAreaClientFallBack.class)
public interface RestTaoticketAreaClient {

@RequestMapping(value = "/getTaoticketAreaById",method = RequestMethod.POST)
public TaoticketArea getTaoticketAreaById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketAreaListByMap",method = RequestMethod.POST)
public List<TaoticketArea>	getTaoticketAreaListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketAreaCountByMap",method = RequestMethod.POST)
public Integer getTaoticketAreaCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketArea",method = RequestMethod.POST)
public Integer qdtxAddTaoticketArea(@RequestBody TaoticketArea taoticketArea)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketArea",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketArea(@RequestBody TaoticketArea taoticketArea)throws Exception;
}
